package com.example.lay.ui;

import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;


public class MyActionBar extends Activity {

    android.app.ActionBar bar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my);
        bar = getActionBar();
//        startActivity(new Intent(this,MySimpleAdapter.class));
//        startActivity(new Intent(this,MyEditTextViewActivity.class));
//        startActivity(new Intent(this, MyButtonActivity.class));
//        startActivity(new Intent(this, MyRadioAndCheckActivity.class));
//        startActivity(new Intent(this, MyToggleSwitchActivity.class));
        startActivity(new Intent(this, MyImageActivity.class));
    }

    public void show(View view) {
        bar.show();

    }

    public void hide(View view) {
        bar.hide();
    }

}
